//
//  SLMapSearchCell.m
//  SlockApp
//
//  Created by 凯朱 on 2024/9/28.
//

#import "SLMapSearchCell.h"

@implementation SLMapSearchModel
@end

@implementation SLMapSearchCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(SLMapSearchModel *)model{
    _model = model;
    _titleLbl.text = model.address;
    _descLbl.text = model.detailAddress;
}

+(CGFloat)cellHeightWith:(SLMapSearchModel *)model{
    CGFloat height = 30;
    CGSize titleSize = STRING_SIZE_FONT(kScreenWidth-40, model.address, kFont(15));
    CGSize descSize = STRING_SIZE_FONT(kScreenWidth-40, model.detailAddress, kFont(13));
    height += titleSize.height + 5;
    height += descSize.height;
    return height;
}

@end
